if get_option('plugin_git')

subdir('daemon')

plugins_sources += files([
  'daemon/line-cache.c',
  'gbp-git-branch.c',
  'gbp-git-buffer-addin.c',
  'gbp-git-buffer-change-monitor.c',
  'gbp-git-client.c',
  'gbp-git-dependency-updater.c',
  'gbp-git-pipeline-addin.c',
  'gbp-git-progress.c',
  'gbp-git-submodule-stage.c',
  'gbp-git-tag.c',
  'gbp-git-tweaks-addin.c',
  'gbp-git-vcs-cloner.c',
  'gbp-git-vcs-config.c',
  'gbp-git-vcs-initializer.c',
  'gbp-git-vcs.c',
  'gbp-git-workbench-addin.c',
  'git-plugin.c',
])

plugins_sources += [
  ipc_git_change_monitor_src,
  ipc_git_config_src,
  ipc_git_progress_src,
  ipc_git_repository_src,
  ipc_git_service_src,
]

plugin_git_resources = gnome.compile_resources(
  'git-resources',
  'git.gresource.xml',
  c_name: 'gbp_git',
)

plugins_sources += plugin_git_resources

endif
